﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Order_Sp.aspx.vb" Inherits="Slxt.Order_Sp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Order_Sh</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
		<link rel="stylesheet" type="text/css" href="/_common/styles/dialogs.css">
		<script language="javascript" src="/_controls/util/util.js"></script>
		
		<LINK href="/_forms/styles/form.css" type="text/css" rel="stylesheet">
		<LINK href="/_nav/tabs.css" type="text/css" rel="stylesheet">
		<LINK href="/_nav/nav.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="/_controls/datetime/date.js"></script>
		<script language="javascript" src="/_controls/number/number.js"></script>
		<script language="javascript" src="/_common/scripts/Details.js"></script>
		<LINK href="/_common/styles/select.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<script language="javascript" src="/_forms/FormBase.js"></script>
		<script language="javascript" src="/_controls/datetime/time.js"></script>

		<script language="javascript">
		function Ok()
		{
		            if(Trim(mapForm.txtOPINION.value) == "")
					{
						alert("请录入审批意见！");
						mapForm.txtOPINION.focus();
						return;
					}
					if(Trim(mapForm.txtAuditBy.value) == "")
					{
						alert("请录入批准人！");
						mapForm.txtAuditBy.focus();
						return;
					}
					if(mapForm.txtAuditingDate.value == "")
					{
						alert("请选择批准日期！");
						mapForm.txtAuditingDate.focus();
						return;
					}	
					
					var strIsApproved="同意";
					if(mapForm.txtIsApproved2.checked ) strIsApproved="不同意";
					var arr=new Array(1);
					arr[0]=strIsApproved+"|"+mapForm.txtAuditBy.value + "|" + mapForm.txtAuditingDate.value;
					arr[1]=mapForm.txtOPINION.value; 				
					parent.window.returnValue=arr;
					parent.window.close();
		}
		</script>
	</HEAD>
	<body MS_POSITIONING="FlowLayout">
		<form id="mapForm" method="post" runat="server" class="map">
			<asp:linkbutton id="lbnSubmit" style="DISPLAY: none" runat="server">系统</asp:linkbutton>
			<table width="100%" cellspacing="0" cellpadding="0" height="100%">
				<tr>
					<td class="main">
						<table style="TABLE-LAYOUT: fixed;VERTICAL-ALIGN: text-bottom" cellSpacing="0" cellPadding="3"
							width="100%" height="100%">
							        <COLGROUP>
								        <col width="60">
								        <col>
								        <col style="PADDING-LEFT: 20px" width="80">
								        <col>
								      </COLGROUP>    
								<TBODY>
								<tr height="20">
									<td colspan=4 >
									    <table style="TABLE-LAYOUT: fixed;VERTICAL-ALIGN: text-bottom" cellSpacing="0" cellPadding="0"
							            width="100%" height="100%">
							               <COLGROUP>
								                <col width="60">
								                <col width="80">
								                <col width="80">
								                <col>
								             </COLGROUP>    
								                <tr height="20">
										            <td valign =middle >是否同意</td>
										            <td valign=middle><input type="radio" name="txtIsApproved" id="txtIsApproved1" checked /> 同意</td>
										            <td valign=middle><input type="radio" name="txtIsApproved" id="txtIsApproved2"/>  不同意</td>
										            <TD></TD>
									            </tr>
									            </table>
									    </td>
									</tr>								
									<tr>
										<td class="req" style="PADDING-LEFT: 3px">审批意见</td>
										<td  colspan =3><textarea  class ="txt" id="txtOPINION" name="txtOPINION" rows="3" maxlength="" req="1"   forbiddenchars="@%#?|.,;'&quot;&amp;&lt;&gt;"></textarea></td>
										
									</tr>
									<tr height="25">
										<td class="req" valign =bottom  style="PADDING-LEFT: 3px">批准人</td>
										<td><asp:TextBox Runat="server" id="txtAuditBy" req="1"></asp:TextBox></td>
										<td class="req" valign =bottom >批准日期</td>
										<td>
											<table style="TABLE-LAYOUT: fixed" cellSpacing="0" cellPadding="0" width="100%">
												<COLGROUP>
													<col>
													<col width="40">
													<tr>
														<td><asp:textbox class="dtm" id="txtAuditingDate" runat="server" maxlength="16" returnValue=""
																value="" mapType="dtm"></asp:textbox></td>
														<td style="PADDING-LEFT: 4px"><IMG class="dtm" src="/_imgs/btn_off_cal.gif" align="absMiddle"></td>
													</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td colspan="4"><FONT face="宋体"></FONT></td>
									</tr>
								</TBODY>
						</table>
					</td>
				</tr>
				<tr height="40">
					<td class="buttons">
						<button onclick="Ok()" id="btnOk" type="button">确 定</button>&nbsp;&nbsp; <button onclick="parent.window.close();" type="button">
							取 消</button>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
